#ifndef __zbStructs_H
#define __zbStructs_H

/* Circular buffer object */
typedef struct {
    int         size;   /* maximum number of elements           */
    int         start;  /* index of oldest element              */
    int         count;   
    u8          *elems;  /* vector of elements                   */
} CircularBuffer;

#pragma pack(push, 1)
typedef struct{
	u8 	ID;
	u8 	TXN;
	u8 	CMD;
	u8 	FLG;
	u16	SIZE;
}pktHdr;
#pragma pack(pop)

typedef enum{
	new = 0x01,
	data = 0x02,
	done = 0x03
}statesEnum;
	

typedef struct{
	u8 		*txHdr;	    // header to send
	u8		*offset;	// offset to start sending payload
	u16		count;		// how much to send from offset
	statesEnum state;  
}dmaPush;




#endif

